﻿Imports WebSitePanel.SkinDesigner.Business
Public Class ucIcon
    Public Event ItemSelected(ByVal Icon As ucIcon)
    Private _path As String
    Public Sub New(ByVal path As String)
        InitializeComponent()
        Me.pb.ImageLocation = path
        _path = path
    End Sub
    Public Sub RefreshPicture()
        Me.pb.ImageLocation = _path
    End Sub
    Public Sub Unload()
        Me.pb.Image.Dispose()
    End Sub
    Private Sub ucIcon_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles pb.MouseDown
        OnMouseDown(e)
    End Sub

    Private Sub pb_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles pb.MouseEnter
        OnMouseEnter(e)
    End Sub

    Private Sub pb_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles pb.MouseLeave
        OnMouseLeave(e)
    End Sub
End Class